package com.cds.drizzt.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.NonNull;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "用户实体类")
public class Users {
    @Schema(hidden = true)
    private Long id;
    @Schema(description = "用户姓名", example = "张三")
    @NotNull
    private String name;
    @NotNull
    @Schema(description = "用户名", example = "zhangsan")
    private String username;
    @NotNull
    @Schema(description = "用户密码", example = "123456")
    private String password;
    @Schema(hidden = true)
    private LocalDateTime createTime = LocalDateTime.now();
    @Schema(hidden = true)
    private LocalDateTime updateTime = LocalDateTime.now();
    @Schema(hidden = true)
    private int delFlag=0;
}
